@import "common";

body {
    min-width: 320px;
    width: 15rem;
    margin: 0 auto;
    line-height: 1.5;
    font-family: Arial, Helvetica;
    background-color: #f2f2f2;
}

//页面元素rem计算公式: 页面元素的px / html字体大小 50
@baseFont: 50;

// 搜索
.search-content {
    display: flex;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15rem;
    height: 88rem / @baseFont;
    background-color: #ffc001;

    .classify {
        width: 44rem / @baseFont;
        height: 70rem / @baseFont;
        background-color: cyan;
        margin: 11rem / @baseFont 25rem / @baseFont 7rem / @baseFont 24rem / @baseFont ;
        background: url(../images/classify.png) no-repeat;
        background-size: 44rem / @baseFont 70rem / @baseFont;
    }

    .search {
        flex: 1;

        input {
            outline: none;
            width: 100%;
            height: 66rem / @baseFont;
            border-radius: 33rem / @baseFont;
            border: 0;
            background-color: #fff2cc;
            font-size: 25rem / @baseFont;
            padding-left: 55rem / @baseFont;
            color: #757575;
        }
    }

    .login {
        width: 75rem / @baseFont;
        height: 70rem / @baseFont;
        margin: 10rem / @baseFont;
        font-size: 25rem / @baseFont;
        color: #fff;
        text-align: center;
        line-height: 70rem / @baseFont;
    }
}

// banner部分
.banner {
    width: 750rem / @baseFont;
    height: 368rem / @baseFont;

    img {
        width: 100%;
        height: 100%;
    }
}

// 广告部分
.ad {
    display: flex;

    a {
        flex: 1;

        img {
            width: 100%;
        }
    }
}

// nav部分
.nav {
    width: 750rem / @baseFont;

    a {
        float: left;
        width: 150rem / @baseFont;
        height: 140rem / @baseFont;
        text-align: center;

        img {
            width: 82rem / @baseFont;
            height: 82rem / @baseFont;
        }

        span {
            display: block;
            font-size: 25rem / @baseFont;
            margin: 0 auto;
            color: #333;
            margin-top: -10rem / @baseFont;
        }
    }

}